/* styles.css */
/* 基础样式 */
:root {
    --primary-blue: #2196F3;
    --primary-red: #FF5252;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text-primary: #212121;
  }
  
  /* 棋子高亮 */
  .possible-move::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .capture-move::after {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-red);
    background: none;
  }
  
  /* AI箭头 */
  .ai-arrow {
    position: absolute;
    height: 3px;
    background: var(--primary-blue);
    transform-origin: left center;
    pointer-events: none;
  }
  
  .ai-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: inherit;
  }
  
  .red-arrow {
    background: var(--primary-red);
  }
  
  /* 暂停状态 */
  .paused #board {
    opacity: 0.7;
    filter: grayscale(0.8);
  }
  
  /* 其他原有样式保持不变... */
  
  body {
    font-family: 'Segoe UI', system-ui;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 400px;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--background);
  }
  
  /* 棋盘样式 */
  #board {
    width: 800px;
    height: 800px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.3s;
  }
  
  .moving-piece {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* 控制面板 */
  .control-panel {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
  
  .toolbar {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
  }
  
  /* AI分析面板 */
  .ai-panel {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
    border-radius: 8px;
    background: var(--surface);
    transition: all 0.3s ease;
  }
  
  #blue-panel { border-color: var(--primary-blue); }
  #red-panel { border-color: var(--primary-red); }
  
  .stats p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
  }
  
  /* 评估指示条 */
  .eval-bar {
    height: 8px;
    background: linear-gradient(to right, 
      var(--primary-blue) 0%, 
      #fff 50%, 
      var(--primary-red) 100%);
    margin: 2rem 0;
    border-radius: 4px;
    position: relative;
  }
  
  #evalIndicator {
    width: 2px;
    height: 120%;
    background: #000;
    position: absolute;
    top: -10%;
    transition: left 0.5s ease;
  }
  
  /* 日志系统 */
  .history-log {
    margin-top: 2rem;
  }
  
  #gameLog {
    height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
  }
  
  .log-entry {
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background 0.2s;
  }
  
  .log-entry:hover {
    background: rgba(0,0,0,0.05);
  }
  
  /* 按钮样式 */
  button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }
  
  #startBtn {
    background: var(--primary-blue);
    color: white;
  }
  
  #startBtn:hover {
    background: #1976D2;
  }
  
  #analysisToggle {
    background: #4CAF50;
    color: white;
  }
  
  #analysisToggle:hover {
    background: #388E3C;
  }
  
  #resetBtn {
    background: #9E9E9E;
    color: white;
  }
  
  #resetBtn:hover {
    background: #757575;
  }
  
  /* 图表容器 */
  .chart-container {
    height: 200px;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
  }
  
  /* 设置面板 */
  .settings-panel {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
  }
  
  .form-group {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .form-control {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex: 1;
  }
  
  input[type="range"] {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
  }
  
  /* 响应式设计 */
  @media (max-width: 1200px) {
    body {
      grid-template-columns: 1fr;
      padding: 1rem;
    }
  
    #board {
      width: 100%;
      height: 90vw;
      max-height: 800px;
    }
  
    .control-panel {
      order: -1;
    }
  }
  
  @media (max-width: 768px) {
    .toolbar {
      flex-direction: column;
    }
  
    button {
      width: 100%;
      justify-content: center;
    }
  }
  
  /* 动画增强 */
  @keyframes piece-move {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  .moving-piece {
    animation: piece-move 0.3s ease-in-out;
    z-index: 100;
  }
  
  /* 模态对话框 */
  .game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 90%;
    animation: modal-appear 0.3s ease-out;
  }
  
  @keyframes modal-appear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  